﻿using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;

public class TimelineManager : SingletonMono<TimelineManager> {

    private List<TimelineTask> taskList = new List<TimelineTask>();

    public void Initialize()
    {
        taskList = new List<TimelineTask>();
        taskList.Add(new TimelineTask());
    }

    void Start()
    {
    }

	// Update is called once per frame
	void Update () {
        foreach (var task in taskList)
        {
            task.Update();
        }
	}

    public void AddTask(float time, Action action)
    {
        taskList[0].AddTask(time, action);
    }
}
